package com.sghd.pojo.fight.game;

/**
 * @author frank
 * @date 2018-10-23 13:48
 * @desc
 **/
public class BuffVo {
    private int id;
    /** buff来源的技能id*/
    private int skillId;
    private UnitValue type;
    private int value;
    private int time;
    private int coolVal;
    private int level;

    public static BuffVo valueOf(int buffId, int skillId, UnitValue unitValue, int value, int time, int coolVal, int level) {
        BuffVo buff = new BuffVo();
        buff.id = buffId;
        buff.type = unitValue;
        buff.value = value;
        buff.time = time;
        buff.coolVal = coolVal;
        buff.skillId = skillId;
        buff.level = level;
        return buff;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public UnitValue getType() {
        return type;
    }

    public void setType(UnitValue type) {
        this.type = type;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public int getCoolVal() {
        return coolVal;
    }

    public void setCoolVal(int coolVal) {
        this.coolVal = coolVal;
    }

    public int getSkillId() {
        return skillId;
    }

    public void setSkillId(int skillId) {
        this.skillId = skillId;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }
}
